package com.huanghuai.retail.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zjh
 * @since 2023-05-04
 */
@TableName("p_o_repository")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PORepository implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long pORepositoryId;

    /**
     * 单据编号
     */
    private String billNum;

    /**
     * 供应商id
     */
    private Integer proId;

    /**
     * 仓库id
     */
    private Long repId;

    /**
     * 出入库时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDate createTime;

    /**
     * 单据类型id
     */
    private Integer billTypeId;

    /**
     * 送货人id
     */
    private Integer deliId;

    /**
     * 经手人id
     */
    private Integer workerId;

    /**
     * 总金额
     */
    private Double totPrice;

    /**
     * 大写金额
     */
    private String bigTotPrice;

    /**
     * 描述
     */
    private String des;
}
